home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / Text Processing / HexEdit Release.sit / HexEdit Release / Project / Source / Utility.h < prev   
Encoding:
C/C++ Source or Header  |  2004-10-30  |  1.8 KB  |  51 lines  |  [TEXT/CWIE]

  1. /*
  2.  * The contents of this file are subject to the Mozilla Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/MPL/
  6.  * 
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  * 
  12.  * The Original Code is Copyright 1993 Jim Bumgardner.
  13.  * 
  14.  * The Initial Developer of the Original Code is Jim Bumgardner
  15.  * Portions created by Lane Roathe are
  16.  * Copyright (C) Copyright © 1996-2002.
  17.  * All Rights Reserved.
  18.  *
  19.  * Modified: $Date: 2002/11/01 00:10:43 $
  20.  * Revision: $Id: Utility.h,v 1.4 2002/11/01 00:10:43 raving Exp $
  21.  *
  22.  * Contributor(s):
  23.  *        Lane Roathe
  24.  *        Nick Shanks
  25.  */
  26.  
  27. #include "HexEdit.h"
  28.  
  29. #ifndef _HexEdit_Utility_
  30. #define _HexEdit_Utility_
  31.  
  32. // Utility Functions
  33. void SetControl( DialogPtr dialog, short item, short value );
  34. void SetText( DialogPtr dialog, short item, StringPtr text );
  35. void GetText( DialogPtr dialog, short item, StringPtr text );
  36. void GetRect( DialogPtr dialog, short item, Rect *r );
  37. void SetDraw( DialogPtr dialog, short item, Handle proc );
  38. void DisableButton( DialogPtr dialog, short bid );
  39. void EnableButton( DialogPtr dialog, short bid );
  40. void SimulateButtonPress( DialogPtr dialog, short bid );
  41. Boolean CheckForAbort( void );
  42. short ErrorAlert( short severity, short strid, ... );
  43. short MyRandom( short limit );
  44. void MySetCursor( short n );
  45. void CopyPascalStringToC( ConstStr255Param source, char* dest );
  46. void CopyCStringToPascal( const char* source, Str255 dest );
  47. OSStatus LaunchURL( StringPtr url );
  48. unsigned long CStringLength( char *string );
  49. Boolean EqualPStrings( UInt8 *source, UInt8 *dest );
  50.  
  51. #endif